-- GENERATED SPELL FOR [Steelfeather] --


function spell0_24514(pUnit, Event) --@Eye Peck,n/a--
pUnit:FullCastSpellOnTarget(49865,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24514', 5291, 1)
end

function spell1_24514(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(18144,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24514', 2286, 1)
end

function Sorts_24514(pUnit, Event)
local choix_sorts_24514 = math.random(0, 1)
if choix_sorts_24514 == 0 then
pUnit:RegisterEvent('spell0_24514', 1, 1)
end
if choix_sorts_24514 == 1 then
pUnit:RegisterEvent('spell1_24514', 1, 1)
end
end

function mob24514_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24514', math.random(1500, 3000), 1)
end

function mob24514_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24514_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24514_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24514, 1, 'mob24514_Action')
RegisterUnitEvent(24514, 2, 'mob24514_Leave')
RegisterUnitEvent(24514, 3, 'mob24514_Kill')
RegisterUnitEvent(24514, 4, 'mob24514_Die')
